From c08db669460495b17ba1530ba6230bdd4e332be6 Mon Sep 17 00:00:00 2001 From: Olaf Hering Date: Fri, 10 Jun 2011 10:47:06 +0200 Subject: [PATCH] xenpaging: drop xc.c, remove ASSERT The ASSERT is not needed, victim is never NULL. Signed-off-by: Olaf Hering Committed-by: Ian Jackson --- tools/xenpaging/policy_default.c | 1 - tools/xenpaging/xc.h | 7 ------- 2 files changed, 8 deletions(-) diff --git a/tools/xenpaging/policy_default.c b/tools/xenpaging/policy_default.c index 55a0ae8470..83fe830309 100644 --- a/tools/xenpaging/policy_default.c +++ b/tools/xenpaging/policy_default.c @@ -78,7 +78,6 @@ int policy_choose_victim(xenpaging_t *paging, xenpaging_victim_t *victim) { xc_interface *xch = paging->xc_handle; unsigned long wrap = current_gfn; - ASSERT(victim != NULL); do { diff --git a/tools/xenpaging/xc.h b/tools/xenpaging/xc.h index 27181cd309..38c4cb0867 100644 --- a/tools/xenpaging/xc.h +++ b/tools/xenpaging/xc.h @@ -30,13 +30,6 @@ #include -#if 1 -#define ASSERT(_p) \ - if ( !(_p) ) { DPRINTF("Assertion '%s' failed, line %d, file %s", #_p , \ - __LINE__, __FILE__); *(int*)0=0; } -#else -#define ASSERT(_p) ((void)0) -#endif -- 2.30.2